package com.zhy.sysconsumer8002.web;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.zhy.sysconsumer8002.feign.SysFeign;
import com.zhy.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class SysWeb {
    /**
     * 根据名称以及账号状态分页获取用户所有信息*/
    @Autowired
    SysFeign feign;
    @GetMapping("/getAllEmp")
    public ResultTool getAllEmp(@RequestParam(value = "pageNo",required = false) Integer pageNo,
                                @RequestParam(value = "name",required = false) String name,
                                @RequestParam(value = "status",required = false) Integer status){
        return feign.getAllEmp(pageNo,name,status);
    }

}
